package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <desc>
 *      物业缴费数据录入PO类
 * </desc>
 *
 * @createDate 2018/08/17
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ItlTables("property_payment_data_record")
public class PropertyPaymentDataRecordPO extends BasePO{
    @ItlField(value = "fee_data_id",logicKey = "key")
    private String feeDataId;                       //逻辑主键
    @ItlField("fee_id")
    private String feeId;                           //账单id
    @ItlField("build_id")
    private String buildId;                         //楼栋id
    @ItlField("unit_id")
    private String unitId;                          //单元id
    @ItlField("room_id")
    private String roomId;                         //房间id
    @ItlField("start_time")
    private Date startTime;                         //起始时间
    @ItlField("end_time")
    private Date endTime;                         //结束时间
    @ItlField("type")
    private Integer type;                         //缴费类型 1水费 2电费 3燃气费
    @ItlField("start")
    private Integer start;                        //超标始度
    @ItlField("end")
    private Integer end;                          //抄表止度
    @ItlField("usage_amount")
    private Integer usageAmount;                //用量
    @ItlField("loss_amount")
    private BigDecimal lossAmount;              //损耗金额
    @ItlField("real_name")
    private String realName;                     //住户名
    @ItlField("phone_num")
    private String phoneNum;                    //住户手机号
    @ItlField("fee_status")
    private Integer feeStatus;                  //费用状态： 1为缴账单 2已缴账单
    @ItlField("fee_rule_id")
    private String feeRuleId;                    //收费规则id
    @ItlField("project_id")
    private String projectId;                    //项目id
    @ItlField("remark")
    private String remark;                       //备注
    @ItlField("due_amount")
    private BigDecimal dueAmount;               //应缴金额
    @ItlField("paid_amount")
    private BigDecimal paidAmount;              //实缴金额
    @ItlField("penalty")
    private BigDecimal penalty;                 //滞纳金
    @ItlField("pay_time")
    private Date payTime;                       //支付成功时间
    @ItlField("origin_pay")
    private Integer originPay;                  //支付来源：1物业 2APP

    private String buildName;           //楼栋名称
    private String unitName;            //单元名称
    private String roomNum;             //房间编号
}
